using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using PCSComUtils.PCSExc;
using PCSUtils.Utils;
using PCSUtils.Log;
using PCSUtils.MasterSetup;
using PCSComUtils.Common;
using PCSComUtils.MasterSetup.DS;
using PCSComUtils.Common.BO;
using PCSComProduction.WorkOrder.BO;
using PCSComProduction.WorkOrder.DS;
using C1.Win.C1TrueDBGrid;


namespace PCSProduction.WorkOrder
{
	/// <summary>
	/// Summary description for ManufacturingClose.
	/// </summary>
	public class ManufacturingClose : System.Windows.Forms.Form
	{
		protected C1.Win.C1Input.C1DateEdit dtmToDueDate;
		protected C1.Win.C1Input.C1DateEdit dtmFromDueDate;
		protected C1.Win.C1Input.C1DateEdit dtmPostDate;
		protected System.Windows.Forms.Button btnSearchMasLoc;
		protected System.Windows.Forms.TextBox txtMasLoc;
		private System.Windows.Forms.Label lblMasLoc;
		private System.Windows.Forms.Label lblPostDate;
		protected C1.Win.C1TrueDBGrid.C1TrueDBGrid gridWOClose;
		protected System.Windows.Forms.Button btnSearch;
		public System.Windows.Forms.Button btnCloseWO;
		protected System.Windows.Forms.Button btnClose;
		protected System.Windows.Forms.Button btnHelp;
		private System.Windows.Forms.Label lblCCN;
		protected C1.Win.C1List.C1Combo cboCCN;
		private System.Windows.Forms.Label lblToDueDate;
		private System.Windows.Forms.Label lblFromDueDate;
		#region My variable
		protected const string THIS = "PCSProduction.WorkOrder.ManufacturingClose";
		#endregion My variable
		/// <summary>
		/// Required designer variable.
		/// </summary>
		protected DataTable dtbGridLayOut;
		protected System.Windows.Forms.CheckBox chkSelectAllManuf;
		private System.ComponentModel.Container components = null;
		const int ZERO = 0;
		protected MST_MasterLocationVO voMasLoc = new MST_MasterLocationVO();
		protected DataSet dstReleaseWO = new DataSet();
		protected DataSet dstGridData;
		protected const string SELECT = "Selected";
		protected bool blnStateOfCheck = false;
		protected const string OPENQUANTITY = "OpenQuantity";
		private const string MANCLOSE_TABLE = "ManClose";
		protected const string PARTNUMBER = "PartNumber";
		protected const string CAPTION_UM = "UM";
		protected const string TRUE = "True";
		private System.Windows.Forms.Label lblClose;
		private const string CLOSE = "close";

		public ManufacturingClose()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ManufacturingClose));
			this.dtmToDueDate = new C1.Win.C1Input.C1DateEdit();
			this.dtmFromDueDate = new C1.Win.C1Input.C1DateEdit();
			this.dtmPostDate = new C1.Win.C1Input.C1DateEdit();
			this.btnSearchMasLoc = new System.Windows.Forms.Button();
			this.txtMasLoc = new System.Windows.Forms.TextBox();
			this.lblMasLoc = new System.Windows.Forms.Label();
			this.lblPostDate = new System.Windows.Forms.Label();
			this.gridWOClose = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
			this.btnSearch = new System.Windows.Forms.Button();
			this.btnCloseWO = new System.Windows.Forms.Button();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnHelp = new System.Windows.Forms.Button();
			this.lblCCN = new System.Windows.Forms.Label();
			this.chkSelectAllManuf = new System.Windows.Forms.CheckBox();
			this.lblToDueDate = new System.Windows.Forms.Label();
			this.lblFromDueDate = new System.Windows.Forms.Label();
			this.cboCCN = new C1.Win.C1List.C1Combo();
			this.lblClose = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.dtmToDueDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromDueDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmPostDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.gridWOClose)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).BeginInit();
			this.SuspendLayout();
			// 
			// dtmToDueDate
			// 
			this.dtmToDueDate.AcceptsEscape = ((bool)(resources.GetObject("dtmToDueDate.AcceptsEscape")));
			this.dtmToDueDate.AccessibleDescription = resources.GetString("dtmToDueDate.AccessibleDescription");
			this.dtmToDueDate.AccessibleName = resources.GetString("dtmToDueDate.AccessibleName");
			this.dtmToDueDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmToDueDate.Anchor")));
			this.dtmToDueDate.AutoSize = ((bool)(resources.GetObject("dtmToDueDate.AutoSize")));
			this.dtmToDueDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToDueDate.BackgroundImage")));
			this.dtmToDueDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmToDueDate.BorderStyle")));
			// 
			// dtmToDueDate.Calendar
			// 
			this.dtmToDueDate.Calendar.AccessibleDescription = resources.GetString("dtmToDueDate.Calendar.AccessibleDescription");
			this.dtmToDueDate.Calendar.AccessibleName = resources.GetString("dtmToDueDate.Calendar.AccessibleName");
			this.dtmToDueDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDueDate.Calendar.AnnuallyBoldedDates")));
			this.dtmToDueDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToDueDate.Calendar.BackgroundImage")));
			this.dtmToDueDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDueDate.Calendar.BoldedDates")));
			this.dtmToDueDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmToDueDate.Calendar.CalendarDimensions")));
			this.dtmToDueDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmToDueDate.Calendar.Enabled")));
			this.dtmToDueDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmToDueDate.Calendar.FirstDayOfWeek")));
			this.dtmToDueDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmToDueDate.Calendar.Font")));
			this.dtmToDueDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToDueDate.Calendar.ImeMode")));
			this.dtmToDueDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDueDate.Calendar.MonthlyBoldedDates")));
			this.dtmToDueDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToDueDate.Calendar.RightToLeft")));
			this.dtmToDueDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmToDueDate.Calendar.ShowClearButton")));
			this.dtmToDueDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmToDueDate.Calendar.ShowTodayButton")));
			this.dtmToDueDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmToDueDate.Calendar.ShowWeekNumbers")));
			this.dtmToDueDate.CaseSensitive = ((bool)(resources.GetObject("dtmToDueDate.CaseSensitive")));
			this.dtmToDueDate.Culture = ((int)(resources.GetObject("dtmToDueDate.Culture")));
			this.dtmToDueDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmToDueDate.CurrentTimeZone")));
			this.dtmToDueDate.CustomFormat = resources.GetString("dtmToDueDate.CustomFormat");
			this.dtmToDueDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmToDueDate.DaylightTimeAdjustment")));
			this.dtmToDueDate.DisplayFormat.CustomFormat = resources.GetString("dtmToDueDate.DisplayFormat.CustomFormat");
			this.dtmToDueDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDueDate.DisplayFormat.FormatType")));
			this.dtmToDueDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToDueDate.DisplayFormat.Inherit")));
			this.dtmToDueDate.DisplayFormat.NullText = resources.GetString("dtmToDueDate.DisplayFormat.NullText");
			this.dtmToDueDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmToDueDate.DisplayFormat.TrimEnd")));
			this.dtmToDueDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmToDueDate.DisplayFormat.TrimStart")));
			this.dtmToDueDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmToDueDate.Dock")));
			this.dtmToDueDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmToDueDate.DropDownFormAlign")));
			this.dtmToDueDate.EditFormat.CustomFormat = resources.GetString("dtmToDueDate.EditFormat.CustomFormat");
			this.dtmToDueDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDueDate.EditFormat.FormatType")));
			this.dtmToDueDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToDueDate.EditFormat.Inherit")));
			this.dtmToDueDate.EditFormat.NullText = resources.GetString("dtmToDueDate.EditFormat.NullText");
			this.dtmToDueDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmToDueDate.EditFormat.TrimEnd")));
			this.dtmToDueDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmToDueDate.EditFormat.TrimStart")));
			this.dtmToDueDate.EditMask = resources.GetString("dtmToDueDate.EditMask");
			this.dtmToDueDate.EmptyAsNull = ((bool)(resources.GetObject("dtmToDueDate.EmptyAsNull")));
			this.dtmToDueDate.Enabled = ((bool)(resources.GetObject("dtmToDueDate.Enabled")));
			this.dtmToDueDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmToDueDate.ErrorInfo.BeepOnError")));
			this.dtmToDueDate.ErrorInfo.ErrorMessage = resources.GetString("dtmToDueDate.ErrorInfo.ErrorMessage");
			this.dtmToDueDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmToDueDate.ErrorInfo.ErrorMessageCaption");
			this.dtmToDueDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmToDueDate.ErrorInfo.ShowErrorMessage")));
			this.dtmToDueDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmToDueDate.ErrorInfo.ValueOnError")));
			this.dtmToDueDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmToDueDate.Font")));
			this.dtmToDueDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDueDate.FormatType")));
			this.dtmToDueDate.GapHeight = ((int)(resources.GetObject("dtmToDueDate.GapHeight")));
			this.dtmToDueDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmToDueDate.GMTOffset")));
			this.dtmToDueDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToDueDate.ImeMode")));
			this.dtmToDueDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmToDueDate.InitialSelection")));
			this.dtmToDueDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmToDueDate.Location")));
			this.dtmToDueDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmToDueDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmToDueDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToDueDate.MaskInfo.CaseSensitive")));
			this.dtmToDueDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmToDueDate.MaskInfo.CopyWithLiterals")));
			this.dtmToDueDate.MaskInfo.EditMask = resources.GetString("dtmToDueDate.MaskInfo.EditMask");
			this.dtmToDueDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToDueDate.MaskInfo.EmptyAsNull")));
			this.dtmToDueDate.MaskInfo.ErrorMessage = resources.GetString("dtmToDueDate.MaskInfo.ErrorMessage");
			this.dtmToDueDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmToDueDate.MaskInfo.Inherit")));
			this.dtmToDueDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmToDueDate.MaskInfo.PromptChar")));
			this.dtmToDueDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmToDueDate.MaskInfo.ShowLiterals")));
			this.dtmToDueDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmToDueDate.MaskInfo.StoredEmptyChar")));
			this.dtmToDueDate.MaxLength = ((int)(resources.GetObject("dtmToDueDate.MaxLength")));
			this.dtmToDueDate.Name = "dtmToDueDate";
			this.dtmToDueDate.NullText = resources.GetString("dtmToDueDate.NullText");
			this.dtmToDueDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToDueDate.ParseInfo.CaseSensitive")));
			this.dtmToDueDate.ParseInfo.CustomFormat = resources.GetString("dtmToDueDate.ParseInfo.CustomFormat");
			this.dtmToDueDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmToDueDate.ParseInfo.DateTimeStyle")));
			this.dtmToDueDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToDueDate.ParseInfo.EmptyAsNull")));
			this.dtmToDueDate.ParseInfo.ErrorMessage = resources.GetString("dtmToDueDate.ParseInfo.ErrorMessage");
			this.dtmToDueDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDueDate.ParseInfo.FormatType")));
			this.dtmToDueDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmToDueDate.ParseInfo.Inherit")));
			this.dtmToDueDate.ParseInfo.NullText = resources.GetString("dtmToDueDate.ParseInfo.NullText");
			this.dtmToDueDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmToDueDate.ParseInfo.TrimEnd")));
			this.dtmToDueDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmToDueDate.ParseInfo.TrimStart")));
			this.dtmToDueDate.PasswordChar = ((char)(resources.GetObject("dtmToDueDate.PasswordChar")));
			this.dtmToDueDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToDueDate.PostValidation.CaseSensitive")));
			this.dtmToDueDate.PostValidation.ErrorMessage = resources.GetString("dtmToDueDate.PostValidation.ErrorMessage");
			this.dtmToDueDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmToDueDate.PostValidation.Inherit")));
			this.dtmToDueDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmToDueDate.PostValidation.Validation")));
			this.dtmToDueDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmToDueDate.PostValidation.Values")));
			this.dtmToDueDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmToDueDate.PostValidation.ValuesExcluded")));
			this.dtmToDueDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToDueDate.PreValidation.CaseSensitive")));
			this.dtmToDueDate.PreValidation.ErrorMessage = resources.GetString("dtmToDueDate.PreValidation.ErrorMessage");
			this.dtmToDueDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmToDueDate.PreValidation.Inherit")));
			this.dtmToDueDate.PreValidation.ItemSeparator = resources.GetString("dtmToDueDate.PreValidation.ItemSeparator");
			this.dtmToDueDate.PreValidation.PatternString = resources.GetString("dtmToDueDate.PreValidation.PatternString");
			this.dtmToDueDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmToDueDate.PreValidation.RegexOptions")));
			this.dtmToDueDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmToDueDate.PreValidation.TrimEnd")));
			this.dtmToDueDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmToDueDate.PreValidation.TrimStart")));
			this.dtmToDueDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmToDueDate.PreValidation.Validation")));
			this.dtmToDueDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToDueDate.RightToLeft")));
			this.dtmToDueDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmToDueDate.ShowFocusRectangle")));
			this.dtmToDueDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmToDueDate.Size")));
			this.dtmToDueDate.TabIndex = ((int)(resources.GetObject("dtmToDueDate.TabIndex")));
			this.dtmToDueDate.Tag = ((object)(resources.GetObject("dtmToDueDate.Tag")));
			this.dtmToDueDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmToDueDate.TextAlign")));
			this.dtmToDueDate.TrimEnd = ((bool)(resources.GetObject("dtmToDueDate.TrimEnd")));
			this.dtmToDueDate.TrimStart = ((bool)(resources.GetObject("dtmToDueDate.TrimStart")));
			this.dtmToDueDate.UserCultureOverride = ((bool)(resources.GetObject("dtmToDueDate.UserCultureOverride")));
			this.dtmToDueDate.Value = ((object)(resources.GetObject("dtmToDueDate.Value")));
			this.dtmToDueDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmToDueDate.VerticalAlign")));
			this.dtmToDueDate.Visible = ((bool)(resources.GetObject("dtmToDueDate.Visible")));
			this.dtmToDueDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmToDueDate.VisibleButtons")));
			// 
			// dtmFromDueDate
			// 
			this.dtmFromDueDate.AcceptsEscape = ((bool)(resources.GetObject("dtmFromDueDate.AcceptsEscape")));
			this.dtmFromDueDate.AccessibleDescription = resources.GetString("dtmFromDueDate.AccessibleDescription");
			this.dtmFromDueDate.AccessibleName = resources.GetString("dtmFromDueDate.AccessibleName");
			this.dtmFromDueDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmFromDueDate.Anchor")));
			this.dtmFromDueDate.AutoSize = ((bool)(resources.GetObject("dtmFromDueDate.AutoSize")));
			this.dtmFromDueDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromDueDate.BackgroundImage")));
			this.dtmFromDueDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmFromDueDate.BorderStyle")));
			// 
			// dtmFromDueDate.Calendar
			// 
			this.dtmFromDueDate.Calendar.AccessibleDescription = resources.GetString("dtmFromDueDate.Calendar.AccessibleDescription");
			this.dtmFromDueDate.Calendar.AccessibleName = resources.GetString("dtmFromDueDate.Calendar.AccessibleName");
			this.dtmFromDueDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDueDate.Calendar.AnnuallyBoldedDates")));
			this.dtmFromDueDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromDueDate.Calendar.BackgroundImage")));
			this.dtmFromDueDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDueDate.Calendar.BoldedDates")));
			this.dtmFromDueDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmFromDueDate.Calendar.CalendarDimensions")));
			this.dtmFromDueDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmFromDueDate.Calendar.Enabled")));
			this.dtmFromDueDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmFromDueDate.Calendar.FirstDayOfWeek")));
			this.dtmFromDueDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromDueDate.Calendar.Font")));
			this.dtmFromDueDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromDueDate.Calendar.ImeMode")));
			this.dtmFromDueDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDueDate.Calendar.MonthlyBoldedDates")));
			this.dtmFromDueDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromDueDate.Calendar.RightToLeft")));
			this.dtmFromDueDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmFromDueDate.Calendar.ShowClearButton")));
			this.dtmFromDueDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmFromDueDate.Calendar.ShowTodayButton")));
			this.dtmFromDueDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmFromDueDate.Calendar.ShowWeekNumbers")));
			this.dtmFromDueDate.CaseSensitive = ((bool)(resources.GetObject("dtmFromDueDate.CaseSensitive")));
			this.dtmFromDueDate.Culture = ((int)(resources.GetObject("dtmFromDueDate.Culture")));
			this.dtmFromDueDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmFromDueDate.CurrentTimeZone")));
			this.dtmFromDueDate.CustomFormat = resources.GetString("dtmFromDueDate.CustomFormat");
			this.dtmFromDueDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmFromDueDate.DaylightTimeAdjustment")));
			this.dtmFromDueDate.DisplayFormat.CustomFormat = resources.GetString("dtmFromDueDate.DisplayFormat.CustomFormat");
			this.dtmFromDueDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDueDate.DisplayFormat.FormatType")));
			this.dtmFromDueDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromDueDate.DisplayFormat.Inherit")));
			this.dtmFromDueDate.DisplayFormat.NullText = resources.GetString("dtmFromDueDate.DisplayFormat.NullText");
			this.dtmFromDueDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromDueDate.DisplayFormat.TrimEnd")));
			this.dtmFromDueDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmFromDueDate.DisplayFormat.TrimStart")));
			this.dtmFromDueDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmFromDueDate.Dock")));
			this.dtmFromDueDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmFromDueDate.DropDownFormAlign")));
			this.dtmFromDueDate.EditFormat.CustomFormat = resources.GetString("dtmFromDueDate.EditFormat.CustomFormat");
			this.dtmFromDueDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDueDate.EditFormat.FormatType")));
			this.dtmFromDueDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromDueDate.EditFormat.Inherit")));
			this.dtmFromDueDate.EditFormat.NullText = resources.GetString("dtmFromDueDate.EditFormat.NullText");
			this.dtmFromDueDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromDueDate.EditFormat.TrimEnd")));
			this.dtmFromDueDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmFromDueDate.EditFormat.TrimStart")));
			this.dtmFromDueDate.EditMask = resources.GetString("dtmFromDueDate.EditMask");
			this.dtmFromDueDate.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDueDate.EmptyAsNull")));
			this.dtmFromDueDate.Enabled = ((bool)(resources.GetObject("dtmFromDueDate.Enabled")));
			this.dtmFromDueDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmFromDueDate.ErrorInfo.BeepOnError")));
			this.dtmFromDueDate.ErrorInfo.ErrorMessage = resources.GetString("dtmFromDueDate.ErrorInfo.ErrorMessage");
			this.dtmFromDueDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmFromDueDate.ErrorInfo.ErrorMessageCaption");
			this.dtmFromDueDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmFromDueDate.ErrorInfo.ShowErrorMessage")));
			this.dtmFromDueDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmFromDueDate.ErrorInfo.ValueOnError")));
			this.dtmFromDueDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromDueDate.Font")));
			this.dtmFromDueDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDueDate.FormatType")));
			this.dtmFromDueDate.GapHeight = ((int)(resources.GetObject("dtmFromDueDate.GapHeight")));
			this.dtmFromDueDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmFromDueDate.GMTOffset")));
			this.dtmFromDueDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromDueDate.ImeMode")));
			this.dtmFromDueDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmFromDueDate.InitialSelection")));
			this.dtmFromDueDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmFromDueDate.Location")));
			this.dtmFromDueDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmFromDueDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmFromDueDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromDueDate.MaskInfo.CaseSensitive")));
			this.dtmFromDueDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmFromDueDate.MaskInfo.CopyWithLiterals")));
			this.dtmFromDueDate.MaskInfo.EditMask = resources.GetString("dtmFromDueDate.MaskInfo.EditMask");
			this.dtmFromDueDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDueDate.MaskInfo.EmptyAsNull")));
			this.dtmFromDueDate.MaskInfo.ErrorMessage = resources.GetString("dtmFromDueDate.MaskInfo.ErrorMessage");
			this.dtmFromDueDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmFromDueDate.MaskInfo.Inherit")));
			this.dtmFromDueDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmFromDueDate.MaskInfo.PromptChar")));
			this.dtmFromDueDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmFromDueDate.MaskInfo.ShowLiterals")));
			this.dtmFromDueDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmFromDueDate.MaskInfo.StoredEmptyChar")));
			this.dtmFromDueDate.MaxLength = ((int)(resources.GetObject("dtmFromDueDate.MaxLength")));
			this.dtmFromDueDate.Name = "dtmFromDueDate";
			this.dtmFromDueDate.NullText = resources.GetString("dtmFromDueDate.NullText");
			this.dtmFromDueDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromDueDate.ParseInfo.CaseSensitive")));
			this.dtmFromDueDate.ParseInfo.CustomFormat = resources.GetString("dtmFromDueDate.ParseInfo.CustomFormat");
			this.dtmFromDueDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmFromDueDate.ParseInfo.DateTimeStyle")));
			this.dtmFromDueDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDueDate.ParseInfo.EmptyAsNull")));
			this.dtmFromDueDate.ParseInfo.ErrorMessage = resources.GetString("dtmFromDueDate.ParseInfo.ErrorMessage");
			this.dtmFromDueDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDueDate.ParseInfo.FormatType")));
			this.dtmFromDueDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmFromDueDate.ParseInfo.Inherit")));
			this.dtmFromDueDate.ParseInfo.NullText = resources.GetString("dtmFromDueDate.ParseInfo.NullText");
			this.dtmFromDueDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmFromDueDate.ParseInfo.TrimEnd")));
			this.dtmFromDueDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmFromDueDate.ParseInfo.TrimStart")));
			this.dtmFromDueDate.PasswordChar = ((char)(resources.GetObject("dtmFromDueDate.PasswordChar")));
			this.dtmFromDueDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromDueDate.PostValidation.CaseSensitive")));
			this.dtmFromDueDate.PostValidation.ErrorMessage = resources.GetString("dtmFromDueDate.PostValidation.ErrorMessage");
			this.dtmFromDueDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmFromDueDate.PostValidation.Inherit")));
			this.dtmFromDueDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmFromDueDate.PostValidation.Validation")));
			this.dtmFromDueDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmFromDueDate.PostValidation.Values")));
			this.dtmFromDueDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmFromDueDate.PostValidation.ValuesExcluded")));
			this.dtmFromDueDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromDueDate.PreValidation.CaseSensitive")));
			this.dtmFromDueDate.PreValidation.ErrorMessage = resources.GetString("dtmFromDueDate.PreValidation.ErrorMessage");
			this.dtmFromDueDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmFromDueDate.PreValidation.Inherit")));
			this.dtmFromDueDate.PreValidation.ItemSeparator = resources.GetString("dtmFromDueDate.PreValidation.ItemSeparator");
			this.dtmFromDueDate.PreValidation.PatternString = resources.GetString("dtmFromDueDate.PreValidation.PatternString");
			this.dtmFromDueDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmFromDueDate.PreValidation.RegexOptions")));
			this.dtmFromDueDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmFromDueDate.PreValidation.TrimEnd")));
			this.dtmFromDueDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmFromDueDate.PreValidation.TrimStart")));
			this.dtmFromDueDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmFromDueDate.PreValidation.Validation")));
			this.dtmFromDueDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromDueDate.RightToLeft")));
			this.dtmFromDueDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmFromDueDate.ShowFocusRectangle")));
			this.dtmFromDueDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmFromDueDate.Size")));
			this.dtmFromDueDate.TabIndex = ((int)(resources.GetObject("dtmFromDueDate.TabIndex")));
			this.dtmFromDueDate.Tag = ((object)(resources.GetObject("dtmFromDueDate.Tag")));
			this.dtmFromDueDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmFromDueDate.TextAlign")));
			this.dtmFromDueDate.TrimEnd = ((bool)(resources.GetObject("dtmFromDueDate.TrimEnd")));
			this.dtmFromDueDate.TrimStart = ((bool)(resources.GetObject("dtmFromDueDate.TrimStart")));
			this.dtmFromDueDate.UserCultureOverride = ((bool)(resources.GetObject("dtmFromDueDate.UserCultureOverride")));
			this.dtmFromDueDate.Value = ((object)(resources.GetObject("dtmFromDueDate.Value")));
			this.dtmFromDueDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmFromDueDate.VerticalAlign")));
			this.dtmFromDueDate.Visible = ((bool)(resources.GetObject("dtmFromDueDate.Visible")));
			this.dtmFromDueDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmFromDueDate.VisibleButtons")));
			// 
			// dtmPostDate
			// 
			this.dtmPostDate.AcceptsEscape = ((bool)(resources.GetObject("dtmPostDate.AcceptsEscape")));
			this.dtmPostDate.AccessibleDescription = resources.GetString("dtmPostDate.AccessibleDescription");
			this.dtmPostDate.AccessibleName = resources.GetString("dtmPostDate.AccessibleName");
			this.dtmPostDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmPostDate.Anchor")));
			this.dtmPostDate.AutoSize = ((bool)(resources.GetObject("dtmPostDate.AutoSize")));
			this.dtmPostDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmPostDate.BackgroundImage")));
			this.dtmPostDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmPostDate.BorderStyle")));
			// 
			// dtmPostDate.Calendar
			// 
			this.dtmPostDate.Calendar.AccessibleDescription = resources.GetString("dtmPostDate.Calendar.AccessibleDescription");
			this.dtmPostDate.Calendar.AccessibleName = resources.GetString("dtmPostDate.Calendar.AccessibleName");
			this.dtmPostDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmPostDate.Calendar.AnnuallyBoldedDates")));
			this.dtmPostDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmPostDate.Calendar.BackgroundImage")));
			this.dtmPostDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmPostDate.Calendar.BoldedDates")));
			this.dtmPostDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmPostDate.Calendar.CalendarDimensions")));
			this.dtmPostDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmPostDate.Calendar.Enabled")));
			this.dtmPostDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmPostDate.Calendar.FirstDayOfWeek")));
			this.dtmPostDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmPostDate.Calendar.Font")));
			this.dtmPostDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmPostDate.Calendar.ImeMode")));
			this.dtmPostDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmPostDate.Calendar.MonthlyBoldedDates")));
			this.dtmPostDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmPostDate.Calendar.RightToLeft")));
			this.dtmPostDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmPostDate.Calendar.ShowClearButton")));
			this.dtmPostDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmPostDate.Calendar.ShowTodayButton")));
			this.dtmPostDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmPostDate.Calendar.ShowWeekNumbers")));
			this.dtmPostDate.CaseSensitive = ((bool)(resources.GetObject("dtmPostDate.CaseSensitive")));
			this.dtmPostDate.Culture = ((int)(resources.GetObject("dtmPostDate.Culture")));
			this.dtmPostDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmPostDate.CurrentTimeZone")));
			this.dtmPostDate.CustomFormat = resources.GetString("dtmPostDate.CustomFormat");
			this.dtmPostDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmPostDate.DaylightTimeAdjustment")));
			this.dtmPostDate.DisplayFormat.CustomFormat = resources.GetString("dtmPostDate.DisplayFormat.CustomFormat");
			this.dtmPostDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmPostDate.DisplayFormat.FormatType")));
			this.dtmPostDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmPostDate.DisplayFormat.Inherit")));
			this.dtmPostDate.DisplayFormat.NullText = resources.GetString("dtmPostDate.DisplayFormat.NullText");
			this.dtmPostDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmPostDate.DisplayFormat.TrimEnd")));
			this.dtmPostDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmPostDate.DisplayFormat.TrimStart")));
			this.dtmPostDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmPostDate.Dock")));
			this.dtmPostDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmPostDate.DropDownFormAlign")));
			this.dtmPostDate.EditFormat.CustomFormat = resources.GetString("dtmPostDate.EditFormat.CustomFormat");
			this.dtmPostDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmPostDate.EditFormat.FormatType")));
			this.dtmPostDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmPostDate.EditFormat.Inherit")));
			this.dtmPostDate.EditFormat.NullText = resources.GetString("dtmPostDate.EditFormat.NullText");
			this.dtmPostDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmPostDate.EditFormat.TrimEnd")));
			this.dtmPostDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmPostDate.EditFormat.TrimStart")));
			this.dtmPostDate.EditMask = resources.GetString("dtmPostDate.EditMask");
			this.dtmPostDate.EmptyAsNull = ((bool)(resources.GetObject("dtmPostDate.EmptyAsNull")));
			this.dtmPostDate.Enabled = ((bool)(resources.GetObject("dtmPostDate.Enabled")));
			this.dtmPostDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmPostDate.ErrorInfo.BeepOnError")));
			this.dtmPostDate.ErrorInfo.ErrorMessage = resources.GetString("dtmPostDate.ErrorInfo.ErrorMessage");
			this.dtmPostDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmPostDate.ErrorInfo.ErrorMessageCaption");
			this.dtmPostDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmPostDate.ErrorInfo.ShowErrorMessage")));
			this.dtmPostDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmPostDate.ErrorInfo.ValueOnError")));
			this.dtmPostDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmPostDate.Font")));
			this.dtmPostDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmPostDate.FormatType")));
			this.dtmPostDate.GapHeight = ((int)(resources.GetObject("dtmPostDate.GapHeight")));
			this.dtmPostDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmPostDate.GMTOffset")));
			this.dtmPostDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmPostDate.ImeMode")));
			this.dtmPostDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmPostDate.InitialSelection")));
			this.dtmPostDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmPostDate.Location")));
			this.dtmPostDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmPostDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmPostDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmPostDate.MaskInfo.CaseSensitive")));
			this.dtmPostDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmPostDate.MaskInfo.CopyWithLiterals")));
			this.dtmPostDate.MaskInfo.EditMask = resources.GetString("dtmPostDate.MaskInfo.EditMask");
			this.dtmPostDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmPostDate.MaskInfo.EmptyAsNull")));
			this.dtmPostDate.MaskInfo.ErrorMessage = resources.GetString("dtmPostDate.MaskInfo.ErrorMessage");
			this.dtmPostDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmPostDate.MaskInfo.Inherit")));
			this.dtmPostDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmPostDate.MaskInfo.PromptChar")));
			this.dtmPostDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmPostDate.MaskInfo.ShowLiterals")));
			this.dtmPostDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmPostDate.MaskInfo.StoredEmptyChar")));
			this.dtmPostDate.MaxLength = ((int)(resources.GetObject("dtmPostDate.MaxLength")));
			this.dtmPostDate.Name = "dtmPostDate";
			this.dtmPostDate.NullText = resources.GetString("dtmPostDate.NullText");
			this.dtmPostDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmPostDate.ParseInfo.CaseSensitive")));
			this.dtmPostDate.ParseInfo.CustomFormat = resources.GetString("dtmPostDate.ParseInfo.CustomFormat");
			this.dtmPostDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmPostDate.ParseInfo.DateTimeStyle")));
			this.dtmPostDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmPostDate.ParseInfo.EmptyAsNull")));
			this.dtmPostDate.ParseInfo.ErrorMessage = resources.GetString("dtmPostDate.ParseInfo.ErrorMessage");
			this.dtmPostDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmPostDate.ParseInfo.FormatType")));
			this.dtmPostDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmPostDate.ParseInfo.Inherit")));
			this.dtmPostDate.ParseInfo.NullText = resources.GetString("dtmPostDate.ParseInfo.NullText");
			this.dtmPostDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmPostDate.ParseInfo.TrimEnd")));
			this.dtmPostDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmPostDate.ParseInfo.TrimStart")));
			this.dtmPostDate.PasswordChar = ((char)(resources.GetObject("dtmPostDate.PasswordChar")));
			this.dtmPostDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmPostDate.PostValidation.CaseSensitive")));
			this.dtmPostDate.PostValidation.ErrorMessage = resources.GetString("dtmPostDate.PostValidation.ErrorMessage");
			this.dtmPostDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmPostDate.PostValidation.Inherit")));
			this.dtmPostDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmPostDate.PostValidation.Validation")));
			this.dtmPostDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmPostDate.PostValidation.Values")));
			this.dtmPostDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmPostDate.PostValidation.ValuesExcluded")));
			this.dtmPostDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmPostDate.PreValidation.CaseSensitive")));
			this.dtmPostDate.PreValidation.ErrorMessage = resources.GetString("dtmPostDate.PreValidation.ErrorMessage");
			this.dtmPostDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmPostDate.PreValidation.Inherit")));
			this.dtmPostDate.PreValidation.ItemSeparator = resources.GetString("dtmPostDate.PreValidation.ItemSeparator");
			this.dtmPostDate.PreValidation.PatternString = resources.GetString("dtmPostDate.PreValidation.PatternString");
			this.dtmPostDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmPostDate.PreValidation.RegexOptions")));
			this.dtmPostDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmPostDate.PreValidation.TrimEnd")));
			this.dtmPostDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmPostDate.PreValidation.TrimStart")));
			this.dtmPostDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmPostDate.PreValidation.Validation")));
			this.dtmPostDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmPostDate.RightToLeft")));
			this.dtmPostDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmPostDate.ShowFocusRectangle")));
			this.dtmPostDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmPostDate.Size")));
			this.dtmPostDate.TabIndex = ((int)(resources.GetObject("dtmPostDate.TabIndex")));
			this.dtmPostDate.Tag = ((object)(resources.GetObject("dtmPostDate.Tag")));
			this.dtmPostDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmPostDate.TextAlign")));
			this.dtmPostDate.TrimEnd = ((bool)(resources.GetObject("dtmPostDate.TrimEnd")));
			this.dtmPostDate.TrimStart = ((bool)(resources.GetObject("dtmPostDate.TrimStart")));
			this.dtmPostDate.UserCultureOverride = ((bool)(resources.GetObject("dtmPostDate.UserCultureOverride")));
			this.dtmPostDate.Value = ((object)(resources.GetObject("dtmPostDate.Value")));
			this.dtmPostDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmPostDate.VerticalAlign")));
			this.dtmPostDate.Visible = ((bool)(resources.GetObject("dtmPostDate.Visible")));
			this.dtmPostDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmPostDate.VisibleButtons")));
			this.dtmPostDate.Enter += new System.EventHandler(this.OnEnterControl);
			this.dtmPostDate.Leave += new System.EventHandler(this.OnLeaveControl);
			// 
			// btnSearchMasLoc
			// 
			this.btnSearchMasLoc.AccessibleDescription = resources.GetString("btnSearchMasLoc.AccessibleDescription");
			this.btnSearchMasLoc.AccessibleName = resources.GetString("btnSearchMasLoc.AccessibleName");
			this.btnSearchMasLoc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSearchMasLoc.Anchor")));
			this.btnSearchMasLoc.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSearchMasLoc.BackgroundImage")));
			this.btnSearchMasLoc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSearchMasLoc.Dock")));
			this.btnSearchMasLoc.Enabled = ((bool)(resources.GetObject("btnSearchMasLoc.Enabled")));
			this.btnSearchMasLoc.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSearchMasLoc.FlatStyle")));
			this.btnSearchMasLoc.Font = ((System.Drawing.Font)(resources.GetObject("btnSearchMasLoc.Font")));
			this.btnSearchMasLoc.Image = ((System.Drawing.Image)(resources.GetObject("btnSearchMasLoc.Image")));
			this.btnSearchMasLoc.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearchMasLoc.ImageAlign")));
			this.btnSearchMasLoc.ImageIndex = ((int)(resources.GetObject("btnSearchMasLoc.ImageIndex")));
			this.btnSearchMasLoc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSearchMasLoc.ImeMode")));
			this.btnSearchMasLoc.Location = ((System.Drawing.Point)(resources.GetObject("btnSearchMasLoc.Location")));
			this.btnSearchMasLoc.Name = "btnSearchMasLoc";
			this.btnSearchMasLoc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSearchMasLoc.RightToLeft")));
			this.btnSearchMasLoc.Size = ((System.Drawing.Size)(resources.GetObject("btnSearchMasLoc.Size")));
			this.btnSearchMasLoc.TabIndex = ((int)(resources.GetObject("btnSearchMasLoc.TabIndex")));
			this.btnSearchMasLoc.Text = resources.GetString("btnSearchMasLoc.Text");
			this.btnSearchMasLoc.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearchMasLoc.TextAlign")));
			this.btnSearchMasLoc.Visible = ((bool)(resources.GetObject("btnSearchMasLoc.Visible")));
			this.btnSearchMasLoc.Click += new System.EventHandler(this.btnSearchMasLoc_Click);
			// 
			// txtMasLoc
			// 
			this.txtMasLoc.AccessibleDescription = resources.GetString("txtMasLoc.AccessibleDescription");
			this.txtMasLoc.AccessibleName = resources.GetString("txtMasLoc.AccessibleName");
			this.txtMasLoc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtMasLoc.Anchor")));
			this.txtMasLoc.AutoSize = ((bool)(resources.GetObject("txtMasLoc.AutoSize")));
			this.txtMasLoc.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtMasLoc.BackgroundImage")));
			this.txtMasLoc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtMasLoc.Dock")));
			this.txtMasLoc.Enabled = ((bool)(resources.GetObject("txtMasLoc.Enabled")));
			this.txtMasLoc.Font = ((System.Drawing.Font)(resources.GetObject("txtMasLoc.Font")));
			this.txtMasLoc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtMasLoc.ImeMode")));
			this.txtMasLoc.Location = ((System.Drawing.Point)(resources.GetObject("txtMasLoc.Location")));
			this.txtMasLoc.MaxLength = ((int)(resources.GetObject("txtMasLoc.MaxLength")));
			this.txtMasLoc.Multiline = ((bool)(resources.GetObject("txtMasLoc.Multiline")));
			this.txtMasLoc.Name = "txtMasLoc";
			this.txtMasLoc.PasswordChar = ((char)(resources.GetObject("txtMasLoc.PasswordChar")));
			this.txtMasLoc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtMasLoc.RightToLeft")));
			this.txtMasLoc.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtMasLoc.ScrollBars")));
			this.txtMasLoc.Size = ((System.Drawing.Size)(resources.GetObject("txtMasLoc.Size")));
			this.txtMasLoc.TabIndex = ((int)(resources.GetObject("txtMasLoc.TabIndex")));
			this.txtMasLoc.Text = resources.GetString("txtMasLoc.Text");
			this.txtMasLoc.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtMasLoc.TextAlign")));
			this.txtMasLoc.Visible = ((bool)(resources.GetObject("txtMasLoc.Visible")));
			this.txtMasLoc.WordWrap = ((bool)(resources.GetObject("txtMasLoc.WordWrap")));
			this.txtMasLoc.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtMasLoc_KeyDown);
			this.txtMasLoc.Leave += new System.EventHandler(this.txtMasLoc_Leave);
			this.txtMasLoc.Enter += new System.EventHandler(this.OnEnterControl);
			// 
			// lblMasLoc
			// 
			this.lblMasLoc.AccessibleDescription = resources.GetString("lblMasLoc.AccessibleDescription");
			this.lblMasLoc.AccessibleName = resources.GetString("lblMasLoc.AccessibleName");
			this.lblMasLoc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblMasLoc.Anchor")));
			this.lblMasLoc.AutoSize = ((bool)(resources.GetObject("lblMasLoc.AutoSize")));
			this.lblMasLoc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblMasLoc.Dock")));
			this.lblMasLoc.Enabled = ((bool)(resources.GetObject("lblMasLoc.Enabled")));
			this.lblMasLoc.Font = ((System.Drawing.Font)(resources.GetObject("lblMasLoc.Font")));
			this.lblMasLoc.ForeColor = System.Drawing.Color.Maroon;
			this.lblMasLoc.Image = ((System.Drawing.Image)(resources.GetObject("lblMasLoc.Image")));
			this.lblMasLoc.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMasLoc.ImageAlign")));
			this.lblMasLoc.ImageIndex = ((int)(resources.GetObject("lblMasLoc.ImageIndex")));
			this.lblMasLoc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblMasLoc.ImeMode")));
			this.lblMasLoc.Location = ((System.Drawing.Point)(resources.GetObject("lblMasLoc.Location")));
			this.lblMasLoc.Name = "lblMasLoc";
			this.lblMasLoc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblMasLoc.RightToLeft")));
			this.lblMasLoc.Size = ((System.Drawing.Size)(resources.GetObject("lblMasLoc.Size")));
			this.lblMasLoc.TabIndex = ((int)(resources.GetObject("lblMasLoc.TabIndex")));
			this.lblMasLoc.Text = resources.GetString("lblMasLoc.Text");
			this.lblMasLoc.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMasLoc.TextAlign")));
			this.lblMasLoc.Visible = ((bool)(resources.GetObject("lblMasLoc.Visible")));
			// 
			// lblPostDate
			// 
			this.lblPostDate.AccessibleDescription = resources.GetString("lblPostDate.AccessibleDescription");
			this.lblPostDate.AccessibleName = resources.GetString("lblPostDate.AccessibleName");
			this.lblPostDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblPostDate.Anchor")));
			this.lblPostDate.AutoSize = ((bool)(resources.GetObject("lblPostDate.AutoSize")));
			this.lblPostDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblPostDate.Dock")));
			this.lblPostDate.Enabled = ((bool)(resources.GetObject("lblPostDate.Enabled")));
			this.lblPostDate.Font = ((System.Drawing.Font)(resources.GetObject("lblPostDate.Font")));
			this.lblPostDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblPostDate.Image = ((System.Drawing.Image)(resources.GetObject("lblPostDate.Image")));
			this.lblPostDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPostDate.ImageAlign")));
			this.lblPostDate.ImageIndex = ((int)(resources.GetObject("lblPostDate.ImageIndex")));
			this.lblPostDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblPostDate.ImeMode")));
			this.lblPostDate.Location = ((System.Drawing.Point)(resources.GetObject("lblPostDate.Location")));
			this.lblPostDate.Name = "lblPostDate";
			this.lblPostDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblPostDate.RightToLeft")));
			this.lblPostDate.Size = ((System.Drawing.Size)(resources.GetObject("lblPostDate.Size")));
			this.lblPostDate.TabIndex = ((int)(resources.GetObject("lblPostDate.TabIndex")));
			this.lblPostDate.Text = resources.GetString("lblPostDate.Text");
			this.lblPostDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPostDate.TextAlign")));
			this.lblPostDate.Visible = ((bool)(resources.GetObject("lblPostDate.Visible")));
			// 
			// gridWOClose
			// 
			this.gridWOClose.AccessibleDescription = resources.GetString("gridWOClose.AccessibleDescription");
			this.gridWOClose.AccessibleName = resources.GetString("gridWOClose.AccessibleName");
			this.gridWOClose.AllowAddNew = ((bool)(resources.GetObject("gridWOClose.AllowAddNew")));
			this.gridWOClose.AllowArrows = ((bool)(resources.GetObject("gridWOClose.AllowArrows")));
			this.gridWOClose.AllowColMove = ((bool)(resources.GetObject("gridWOClose.AllowColMove")));
			this.gridWOClose.AllowColSelect = ((bool)(resources.GetObject("gridWOClose.AllowColSelect")));
			this.gridWOClose.AllowDelete = ((bool)(resources.GetObject("gridWOClose.AllowDelete")));
			this.gridWOClose.AllowDrag = ((bool)(resources.GetObject("gridWOClose.AllowDrag")));
			this.gridWOClose.AllowFilter = ((bool)(resources.GetObject("gridWOClose.AllowFilter")));
			this.gridWOClose.AllowHorizontalSplit = ((bool)(resources.GetObject("gridWOClose.AllowHorizontalSplit")));
			this.gridWOClose.AllowRowSelect = ((bool)(resources.GetObject("gridWOClose.AllowRowSelect")));
			this.gridWOClose.AllowSort = ((bool)(resources.GetObject("gridWOClose.AllowSort")));
			this.gridWOClose.AllowUpdate = ((bool)(resources.GetObject("gridWOClose.AllowUpdate")));
			this.gridWOClose.AllowUpdateOnBlur = ((bool)(resources.GetObject("gridWOClose.AllowUpdateOnBlur")));
			this.gridWOClose.AllowVerticalSplit = ((bool)(resources.GetObject("gridWOClose.AllowVerticalSplit")));
			this.gridWOClose.AlternatingRows = ((bool)(resources.GetObject("gridWOClose.AlternatingRows")));
			this.gridWOClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("gridWOClose.Anchor")));
			this.gridWOClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("gridWOClose.BackgroundImage")));
			this.gridWOClose.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("gridWOClose.BorderStyle")));
			this.gridWOClose.Caption = resources.GetString("gridWOClose.Caption");
			this.gridWOClose.CaptionHeight = ((int)(resources.GetObject("gridWOClose.CaptionHeight")));
			this.gridWOClose.CellTipsDelay = ((int)(resources.GetObject("gridWOClose.CellTipsDelay")));
			this.gridWOClose.CellTipsWidth = ((int)(resources.GetObject("gridWOClose.CellTipsWidth")));
			this.gridWOClose.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("gridWOClose.ChildGrid")));
			this.gridWOClose.CollapseColor = ((System.Drawing.Color)(resources.GetObject("gridWOClose.CollapseColor")));
			this.gridWOClose.ColumnFooters = ((bool)(resources.GetObject("gridWOClose.ColumnFooters")));
			this.gridWOClose.ColumnHeaders = ((bool)(resources.GetObject("gridWOClose.ColumnHeaders")));
			this.gridWOClose.DefColWidth = ((int)(resources.GetObject("gridWOClose.DefColWidth")));
			this.gridWOClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("gridWOClose.Dock")));
			this.gridWOClose.EditDropDown = ((bool)(resources.GetObject("gridWOClose.EditDropDown")));
			this.gridWOClose.EmptyRows = ((bool)(resources.GetObject("gridWOClose.EmptyRows")));
			this.gridWOClose.Enabled = ((bool)(resources.GetObject("gridWOClose.Enabled")));
			this.gridWOClose.ExpandColor = ((System.Drawing.Color)(resources.GetObject("gridWOClose.ExpandColor")));
			this.gridWOClose.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("gridWOClose.ExposeCellMode")));
			this.gridWOClose.ExtendRightColumn = ((bool)(resources.GetObject("gridWOClose.ExtendRightColumn")));
			this.gridWOClose.FetchRowStyles = ((bool)(resources.GetObject("gridWOClose.FetchRowStyles")));
			this.gridWOClose.FilterBar = ((bool)(resources.GetObject("gridWOClose.FilterBar")));
			this.gridWOClose.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("gridWOClose.FlatStyle")));
			this.gridWOClose.Font = ((System.Drawing.Font)(resources.GetObject("gridWOClose.Font")));
			this.gridWOClose.GroupByAreaVisible = ((bool)(resources.GetObject("gridWOClose.GroupByAreaVisible")));
			this.gridWOClose.GroupByCaption = resources.GetString("gridWOClose.GroupByCaption");
			this.gridWOClose.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
			this.gridWOClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("gridWOClose.ImeMode")));
			this.gridWOClose.LinesPerRow = ((int)(resources.GetObject("gridWOClose.LinesPerRow")));
			this.gridWOClose.Location = ((System.Drawing.Point)(resources.GetObject("gridWOClose.Location")));
			this.gridWOClose.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
			this.gridWOClose.Name = "gridWOClose";
			this.gridWOClose.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("gridWOClose.PictureAddnewRow")));
			this.gridWOClose.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("gridWOClose.PictureCurrentRow")));
			this.gridWOClose.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("gridWOClose.PictureFilterBar")));
			this.gridWOClose.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("gridWOClose.PictureFooterRow")));
			this.gridWOClose.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("gridWOClose.PictureHeaderRow")));
			this.gridWOClose.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("gridWOClose.PictureModifiedRow")));
			this.gridWOClose.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("gridWOClose.PictureStandardRow")));
			this.gridWOClose.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("gridWOClose.PreviewInfo.AllowSizing")));
			this.gridWOClose.PreviewInfo.Caption = resources.GetString("gridWOClose.PreviewInfo.Caption");
			this.gridWOClose.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("gridWOClose.PreviewInfo.Location")));
			this.gridWOClose.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("gridWOClose.PreviewInfo.Size")));
			this.gridWOClose.PreviewInfo.ToolBars = ((bool)(resources.GetObject("gridWOClose.PreviewInfo.ToolBars")));
			this.gridWOClose.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("gridWOClose.PreviewInfo.UIStrings.Content")));
			this.gridWOClose.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("gridWOClose.PreviewInfo.ZoomFactor")));
			this.gridWOClose.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("gridWOClose.PrintInfo.MaxRowHeight")));
			this.gridWOClose.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("gridWOClose.PrintInfo.OwnerDrawPageFooter")));
			this.gridWOClose.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("gridWOClose.PrintInfo.OwnerDrawPageHeader")));
			this.gridWOClose.PrintInfo.PageFooter = resources.GetString("gridWOClose.PrintInfo.PageFooter");
			this.gridWOClose.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("gridWOClose.PrintInfo.PageFooterHeight")));
			this.gridWOClose.PrintInfo.PageHeader = resources.GetString("gridWOClose.PrintInfo.PageHeader");
			this.gridWOClose.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("gridWOClose.PrintInfo.PageHeaderHeight")));
			this.gridWOClose.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("gridWOClose.PrintInfo.PrintHorizontalSplits")));
			this.gridWOClose.PrintInfo.ProgressCaption = resources.GetString("gridWOClose.PrintInfo.ProgressCaption");
			this.gridWOClose.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("gridWOClose.PrintInfo.RepeatColumnFooters")));
			this.gridWOClose.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("gridWOClose.PrintInfo.RepeatColumnHeaders")));
			this.gridWOClose.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("gridWOClose.PrintInfo.RepeatGridHeader")));
			this.gridWOClose.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("gridWOClose.PrintInfo.RepeatSplitHeaders")));
			this.gridWOClose.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("gridWOClose.PrintInfo.ShowOptionsDialog")));
			this.gridWOClose.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("gridWOClose.PrintInfo.ShowProgressForm")));
			this.gridWOClose.PrintInfo.ShowSelection = ((bool)(resources.GetObject("gridWOClose.PrintInfo.ShowSelection")));
			this.gridWOClose.PrintInfo.UseGridColors = ((bool)(resources.GetObject("gridWOClose.PrintInfo.UseGridColors")));
			this.gridWOClose.RecordSelectors = ((bool)(resources.GetObject("gridWOClose.RecordSelectors")));
			this.gridWOClose.RecordSelectorWidth = ((int)(resources.GetObject("gridWOClose.RecordSelectorWidth")));
			this.gridWOClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("gridWOClose.RightToLeft")));
			this.gridWOClose.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
			this.gridWOClose.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
			this.gridWOClose.RowHeight = ((int)(resources.GetObject("gridWOClose.RowHeight")));
			this.gridWOClose.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("gridWOClose.RowSubDividerColor")));
			this.gridWOClose.ScrollTips = ((bool)(resources.GetObject("gridWOClose.ScrollTips")));
			this.gridWOClose.ScrollTrack = ((bool)(resources.GetObject("gridWOClose.ScrollTrack")));
			this.gridWOClose.Size = ((System.Drawing.Size)(resources.GetObject("gridWOClose.Size")));
			this.gridWOClose.SpringMode = ((bool)(resources.GetObject("gridWOClose.SpringMode")));
			this.gridWOClose.TabAcrossSplits = ((bool)(resources.GetObject("gridWOClose.TabAcrossSplits")));
			this.gridWOClose.TabIndex = ((int)(resources.GetObject("gridWOClose.TabIndex")));
			this.gridWOClose.Text = resources.GetString("gridWOClose.Text");
			this.gridWOClose.ViewCaptionWidth = ((int)(resources.GetObject("gridWOClose.ViewCaptionWidth")));
			this.gridWOClose.ViewColumnWidth = ((int)(resources.GetObject("gridWOClose.ViewColumnWidth")));
			this.gridWOClose.Visible = ((bool)(resources.GetObject("gridWOClose.Visible")));
			this.gridWOClose.WrapCellPointer = ((bool)(resources.GetObject("gridWOClose.WrapCellPointer")));
			this.gridWOClose.AfterColEdit += new C1.Win.C1TrueDBGrid.ColEventHandler(this.gridWOClose_AfterColEdit);
			this.gridWOClose.PropBag = resources.GetString("gridWOClose.PropBag");
			// 
			// btnSearch
			// 
			this.btnSearch.AccessibleDescription = resources.GetString("btnSearch.AccessibleDescription");
			this.btnSearch.AccessibleName = resources.GetString("btnSearch.AccessibleName");
			this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSearch.Anchor")));
			this.btnSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSearch.BackgroundImage")));
			this.btnSearch.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSearch.Dock")));
			this.btnSearch.Enabled = ((bool)(resources.GetObject("btnSearch.Enabled")));
			this.btnSearch.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSearch.FlatStyle")));
			this.btnSearch.Font = ((System.Drawing.Font)(resources.GetObject("btnSearch.Font")));
			this.btnSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnSearch.Image")));
			this.btnSearch.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearch.ImageAlign")));
			this.btnSearch.ImageIndex = ((int)(resources.GetObject("btnSearch.ImageIndex")));
			this.btnSearch.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSearch.ImeMode")));
			this.btnSearch.Location = ((System.Drawing.Point)(resources.GetObject("btnSearch.Location")));
			this.btnSearch.Name = "btnSearch";
			this.btnSearch.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSearch.RightToLeft")));
			this.btnSearch.Size = ((System.Drawing.Size)(resources.GetObject("btnSearch.Size")));
			this.btnSearch.TabIndex = ((int)(resources.GetObject("btnSearch.TabIndex")));
			this.btnSearch.Text = resources.GetString("btnSearch.Text");
			this.btnSearch.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearch.TextAlign")));
			this.btnSearch.Visible = ((bool)(resources.GetObject("btnSearch.Visible")));
			this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
			// 
			// btnCloseWO
			// 
			this.btnCloseWO.AccessibleDescription = resources.GetString("btnCloseWO.AccessibleDescription");
			this.btnCloseWO.AccessibleName = resources.GetString("btnCloseWO.AccessibleName");
			this.btnCloseWO.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnCloseWO.Anchor")));
			this.btnCloseWO.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCloseWO.BackgroundImage")));
			this.btnCloseWO.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnCloseWO.Dock")));
			this.btnCloseWO.Enabled = ((bool)(resources.GetObject("btnCloseWO.Enabled")));
			this.btnCloseWO.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnCloseWO.FlatStyle")));
			this.btnCloseWO.Font = ((System.Drawing.Font)(resources.GetObject("btnCloseWO.Font")));
			this.btnCloseWO.Image = ((System.Drawing.Image)(resources.GetObject("btnCloseWO.Image")));
			this.btnCloseWO.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCloseWO.ImageAlign")));
			this.btnCloseWO.ImageIndex = ((int)(resources.GetObject("btnCloseWO.ImageIndex")));
			this.btnCloseWO.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnCloseWO.ImeMode")));
			this.btnCloseWO.Location = ((System.Drawing.Point)(resources.GetObject("btnCloseWO.Location")));
			this.btnCloseWO.Name = "btnCloseWO";
			this.btnCloseWO.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnCloseWO.RightToLeft")));
			this.btnCloseWO.Size = ((System.Drawing.Size)(resources.GetObject("btnCloseWO.Size")));
			this.btnCloseWO.TabIndex = ((int)(resources.GetObject("btnCloseWO.TabIndex")));
			this.btnCloseWO.Text = resources.GetString("btnCloseWO.Text");
			this.btnCloseWO.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCloseWO.TextAlign")));
			this.btnCloseWO.Visible = ((bool)(resources.GetObject("btnCloseWO.Visible")));
			this.btnCloseWO.Click += new System.EventHandler(this.btnCloseWO_Click);
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnHelp
			// 
			this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
			this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
			this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
			this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
			this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
			this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
			this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
			this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
			this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
			this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
			this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
			this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
			this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
			this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
			this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
			this.btnHelp.Text = resources.GetString("btnHelp.Text");
			this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
			this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
			this.btnHelp.Click += new System.EventHandler(this.btnHelp_Click);
			// 
			// lblCCN
			// 
			this.lblCCN.AccessibleDescription = resources.GetString("lblCCN.AccessibleDescription");
			this.lblCCN.AccessibleName = resources.GetString("lblCCN.AccessibleName");
			this.lblCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCCN.Anchor")));
			this.lblCCN.AutoSize = ((bool)(resources.GetObject("lblCCN.AutoSize")));
			this.lblCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCCN.Dock")));
			this.lblCCN.Enabled = ((bool)(resources.GetObject("lblCCN.Enabled")));
			this.lblCCN.Font = ((System.Drawing.Font)(resources.GetObject("lblCCN.Font")));
			this.lblCCN.ForeColor = System.Drawing.Color.Maroon;
			this.lblCCN.Image = ((System.Drawing.Image)(resources.GetObject("lblCCN.Image")));
			this.lblCCN.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.ImageAlign")));
			this.lblCCN.ImageIndex = ((int)(resources.GetObject("lblCCN.ImageIndex")));
			this.lblCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCCN.ImeMode")));
			this.lblCCN.Location = ((System.Drawing.Point)(resources.GetObject("lblCCN.Location")));
			this.lblCCN.Name = "lblCCN";
			this.lblCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCCN.RightToLeft")));
			this.lblCCN.Size = ((System.Drawing.Size)(resources.GetObject("lblCCN.Size")));
			this.lblCCN.TabIndex = ((int)(resources.GetObject("lblCCN.TabIndex")));
			this.lblCCN.Text = resources.GetString("lblCCN.Text");
			this.lblCCN.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.TextAlign")));
			this.lblCCN.Visible = ((bool)(resources.GetObject("lblCCN.Visible")));
			// 
			// chkSelectAllManuf
			// 
			this.chkSelectAllManuf.AccessibleDescription = resources.GetString("chkSelectAllManuf.AccessibleDescription");
			this.chkSelectAllManuf.AccessibleName = resources.GetString("chkSelectAllManuf.AccessibleName");
			this.chkSelectAllManuf.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("chkSelectAllManuf.Anchor")));
			this.chkSelectAllManuf.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("chkSelectAllManuf.Appearance")));
			this.chkSelectAllManuf.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("chkSelectAllManuf.BackgroundImage")));
			this.chkSelectAllManuf.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAllManuf.CheckAlign")));
			this.chkSelectAllManuf.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("chkSelectAllManuf.Dock")));
			this.chkSelectAllManuf.Enabled = ((bool)(resources.GetObject("chkSelectAllManuf.Enabled")));
			this.chkSelectAllManuf.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("chkSelectAllManuf.FlatStyle")));
			this.chkSelectAllManuf.Font = ((System.Drawing.Font)(resources.GetObject("chkSelectAllManuf.Font")));
			this.chkSelectAllManuf.Image = ((System.Drawing.Image)(resources.GetObject("chkSelectAllManuf.Image")));
			this.chkSelectAllManuf.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAllManuf.ImageAlign")));
			this.chkSelectAllManuf.ImageIndex = ((int)(resources.GetObject("chkSelectAllManuf.ImageIndex")));
			this.chkSelectAllManuf.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("chkSelectAllManuf.ImeMode")));
			this.chkSelectAllManuf.Location = ((System.Drawing.Point)(resources.GetObject("chkSelectAllManuf.Location")));
			this.chkSelectAllManuf.Name = "chkSelectAllManuf";
			this.chkSelectAllManuf.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("chkSelectAllManuf.RightToLeft")));
			this.chkSelectAllManuf.Size = ((System.Drawing.Size)(resources.GetObject("chkSelectAllManuf.Size")));
			this.chkSelectAllManuf.TabIndex = ((int)(resources.GetObject("chkSelectAllManuf.TabIndex")));
			this.chkSelectAllManuf.Text = resources.GetString("chkSelectAllManuf.Text");
			this.chkSelectAllManuf.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAllManuf.TextAlign")));
			this.chkSelectAllManuf.Visible = ((bool)(resources.GetObject("chkSelectAllManuf.Visible")));
			this.chkSelectAllManuf.Enter += new System.EventHandler(this.chkSelectAllManuf_Enter);
			this.chkSelectAllManuf.Leave += new System.EventHandler(this.chkSelectAllManuf_Leave);
			this.chkSelectAllManuf.CheckedChanged += new System.EventHandler(this.chkSelectAllManuf_CheckedChanged);
			// 
			// lblToDueDate
			// 
			this.lblToDueDate.AccessibleDescription = resources.GetString("lblToDueDate.AccessibleDescription");
			this.lblToDueDate.AccessibleName = resources.GetString("lblToDueDate.AccessibleName");
			this.lblToDueDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblToDueDate.Anchor")));
			this.lblToDueDate.AutoSize = ((bool)(resources.GetObject("lblToDueDate.AutoSize")));
			this.lblToDueDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblToDueDate.Dock")));
			this.lblToDueDate.Enabled = ((bool)(resources.GetObject("lblToDueDate.Enabled")));
			this.lblToDueDate.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblToDueDate.Font = ((System.Drawing.Font)(resources.GetObject("lblToDueDate.Font")));
			this.lblToDueDate.ForeColor = System.Drawing.Color.Black;
			this.lblToDueDate.Image = ((System.Drawing.Image)(resources.GetObject("lblToDueDate.Image")));
			this.lblToDueDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToDueDate.ImageAlign")));
			this.lblToDueDate.ImageIndex = ((int)(resources.GetObject("lblToDueDate.ImageIndex")));
			this.lblToDueDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblToDueDate.ImeMode")));
			this.lblToDueDate.Location = ((System.Drawing.Point)(resources.GetObject("lblToDueDate.Location")));
			this.lblToDueDate.Name = "lblToDueDate";
			this.lblToDueDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblToDueDate.RightToLeft")));
			this.lblToDueDate.Size = ((System.Drawing.Size)(resources.GetObject("lblToDueDate.Size")));
			this.lblToDueDate.TabIndex = ((int)(resources.GetObject("lblToDueDate.TabIndex")));
			this.lblToDueDate.Text = resources.GetString("lblToDueDate.Text");
			this.lblToDueDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToDueDate.TextAlign")));
			this.lblToDueDate.Visible = ((bool)(resources.GetObject("lblToDueDate.Visible")));
			this.lblToDueDate.Click += new System.EventHandler(this.lblToDueDate_Click);
			// 
			// lblFromDueDate
			// 
			this.lblFromDueDate.AccessibleDescription = resources.GetString("lblFromDueDate.AccessibleDescription");
			this.lblFromDueDate.AccessibleName = resources.GetString("lblFromDueDate.AccessibleName");
			this.lblFromDueDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblFromDueDate.Anchor")));
			this.lblFromDueDate.AutoSize = ((bool)(resources.GetObject("lblFromDueDate.AutoSize")));
			this.lblFromDueDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblFromDueDate.Dock")));
			this.lblFromDueDate.Enabled = ((bool)(resources.GetObject("lblFromDueDate.Enabled")));
			this.lblFromDueDate.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblFromDueDate.Font = ((System.Drawing.Font)(resources.GetObject("lblFromDueDate.Font")));
			this.lblFromDueDate.ForeColor = System.Drawing.Color.Black;
			this.lblFromDueDate.Image = ((System.Drawing.Image)(resources.GetObject("lblFromDueDate.Image")));
			this.lblFromDueDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromDueDate.ImageAlign")));
			this.lblFromDueDate.ImageIndex = ((int)(resources.GetObject("lblFromDueDate.ImageIndex")));
			this.lblFromDueDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblFromDueDate.ImeMode")));
			this.lblFromDueDate.Location = ((System.Drawing.Point)(resources.GetObject("lblFromDueDate.Location")));
			this.lblFromDueDate.Name = "lblFromDueDate";
			this.lblFromDueDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblFromDueDate.RightToLeft")));
			this.lblFromDueDate.Size = ((System.Drawing.Size)(resources.GetObject("lblFromDueDate.Size")));
			this.lblFromDueDate.TabIndex = ((int)(resources.GetObject("lblFromDueDate.TabIndex")));
			this.lblFromDueDate.Text = resources.GetString("lblFromDueDate.Text");
			this.lblFromDueDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromDueDate.TextAlign")));
			this.lblFromDueDate.Visible = ((bool)(resources.GetObject("lblFromDueDate.Visible")));
			// 
			// cboCCN
			// 
			this.cboCCN.AccessibleDescription = resources.GetString("cboCCN.AccessibleDescription");
			this.cboCCN.AccessibleName = resources.GetString("cboCCN.AccessibleName");
			this.cboCCN.AddItemSeparator = ';';
			this.cboCCN.AllowRowSizing = C1.Win.C1List.RowSizingEnum.AllRows;
			this.cboCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cboCCN.Anchor")));
			this.cboCCN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cboCCN.BackgroundImage")));
			this.cboCCN.Caption = "";
			this.cboCCN.CaptionHeight = 17;
			this.cboCCN.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
			this.cboCCN.ColumnCaptionHeight = 17;
			this.cboCCN.ColumnFooterHeight = 17;
			this.cboCCN.ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownList;
			this.cboCCN.ContentHeight = 15;
			this.cboCCN.DeadAreaBackColor = System.Drawing.Color.Empty;
			this.cboCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cboCCN.Dock")));
			this.cboCCN.EditorBackColor = System.Drawing.SystemColors.Window;
			this.cboCCN.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.cboCCN.EditorForeColor = System.Drawing.SystemColors.WindowText;
			this.cboCCN.EditorHeight = 15;
			this.cboCCN.Enabled = ((bool)(resources.GetObject("cboCCN.Enabled")));
			this.cboCCN.FlatStyle = C1.Win.C1List.FlatModeEnum.System;
			this.cboCCN.Font = ((System.Drawing.Font)(resources.GetObject("cboCCN.Font")));
			this.cboCCN.GapHeight = 2;
			this.cboCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cboCCN.ImeMode")));
			this.cboCCN.ItemHeight = 15;
			this.cboCCN.Location = ((System.Drawing.Point)(resources.GetObject("cboCCN.Location")));
			this.cboCCN.MatchEntryTimeout = ((long)(2000));
			this.cboCCN.MaxDropDownItems = ((short)(5));
			this.cboCCN.MaxLength = 32767;
			this.cboCCN.MouseCursor = System.Windows.Forms.Cursors.Default;
			this.cboCCN.Name = "cboCCN";
			this.cboCCN.PartialRightColumn = false;
			this.cboCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cboCCN.RightToLeft")));
			this.cboCCN.RowDivider.Color = System.Drawing.Color.DarkGray;
			this.cboCCN.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None;
			this.cboCCN.RowSubDividerColor = System.Drawing.Color.DarkGray;
			this.cboCCN.Size = ((System.Drawing.Size)(resources.GetObject("cboCCN.Size")));
			this.cboCCN.TabIndex = ((int)(resources.GetObject("cboCCN.TabIndex")));
			this.cboCCN.Text = resources.GetString("cboCCN.Text");
			this.cboCCN.Visible = ((bool)(resources.GetObject("cboCCN.Visible")));
			this.cboCCN.Enter += new System.EventHandler(this.OnEnterControl);
			this.cboCCN.Leave += new System.EventHandler(this.OnLeaveControl);
			this.cboCCN.PropBag = "<?xml version=\"1.0\"?><Blob><Styles type=\"C1.Win.C1List.Design.ContextWrapper\"><Da" +
				"ta>Group{AlignVert:Center;Border:None,,0, 0, 0, 0;BackColor:ControlDark;}Style2{" +
				"}Style5{}Style4{}Style7{}Style6{}EvenRow{BackColor:Aqua;}Selected{ForeColor:High" +
				"lightText;BackColor:Highlight;}Style3{}Inactive{ForeColor:InactiveCaptionText;Ba" +
				"ckColor:InactiveCaption;}Footer{}Caption{AlignHorz:Center;}Normal{}HighlightRow{" +
				"ForeColor:HighlightText;BackColor:Highlight;}Style1{}OddRow{}RecordSelector{Alig" +
				"nImage:Center;}Heading{Wrap:True;BackColor:Control;Border:Raised,,1, 1, 1, 1;For" +
				"eColor:ControlText;AlignVert:Center;}Style8{}Style10{}Style11{}Style9{AlignHorz:" +
				"Near;}</Data></Styles><Splits><C1.Win.C1List.ListBoxView AllowColSelect=\"False\" " +
				"Name=\"\" CaptionHeight=\"17\" ColumnCaptionHeight=\"17\" ColumnFooterHeight=\"17\" Vert" +
				"icalScrollGroup=\"1\" HorizontalScrollGroup=\"1\"><ClientRect>0, 0, 118, 158</Client" +
				"Rect><VScrollBar><Width>17</Width></VScrollBar><HScrollBar><Height>17</Height></" +
				"HScrollBar><CaptionStyle parent=\"Style2\" me=\"Style9\" /><EvenRowStyle parent=\"Eve" +
				"nRow\" me=\"Style7\" /><FooterStyle parent=\"Footer\" me=\"Style3\" /><GroupStyle paren" +
				"t=\"Group\" me=\"Style11\" /><HeadingStyle parent=\"Heading\" me=\"Style2\" /><HighLight" +
				"RowStyle parent=\"HighlightRow\" me=\"Style6\" /><InactiveStyle parent=\"Inactive\" me" +
				"=\"Style4\" /><OddRowStyle parent=\"OddRow\" me=\"Style8\" /><RecordSelectorStyle pare" +
				"nt=\"RecordSelector\" me=\"Style10\" /><SelectedStyle parent=\"Selected\" me=\"Style5\" " +
				"/><Style parent=\"Normal\" me=\"Style1\" /></C1.Win.C1List.ListBoxView></Splits><Nam" +
				"edStyles><Style parent=\"\" me=\"Normal\" /><Style parent=\"Normal\" me=\"Heading\" /><S" +
				"tyle parent=\"Heading\" me=\"Footer\" /><Style parent=\"Heading\" me=\"Caption\" /><Styl" +
				"e parent=\"Heading\" me=\"Inactive\" /><Style parent=\"Normal\" me=\"Selected\" /><Style" +
				" parent=\"Normal\" me=\"HighlightRow\" /><Style parent=\"Normal\" me=\"EvenRow\" /><Styl" +
				"e parent=\"Normal\" me=\"OddRow\" /><Style parent=\"Heading\" me=\"RecordSelector\" /><S" +
				"tyle parent=\"Caption\" me=\"Group\" /></NamedStyles><vertSplits>1</vertSplits><horz" +
				"Splits>1</horzSplits><Layout>Modified</Layout><DefaultRecSelWidth>17</DefaultRec" +
				"SelWidth></Blob>";
			// 
			// lblClose
			// 
			this.lblClose.AccessibleDescription = resources.GetString("lblClose.AccessibleDescription");
			this.lblClose.AccessibleName = resources.GetString("lblClose.AccessibleName");
			this.lblClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblClose.Anchor")));
			this.lblClose.AutoSize = ((bool)(resources.GetObject("lblClose.AutoSize")));
			this.lblClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblClose.Dock")));
			this.lblClose.Enabled = ((bool)(resources.GetObject("lblClose.Enabled")));
			this.lblClose.Font = ((System.Drawing.Font)(resources.GetObject("lblClose.Font")));
			this.lblClose.Image = ((System.Drawing.Image)(resources.GetObject("lblClose.Image")));
			this.lblClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblClose.ImageAlign")));
			this.lblClose.ImageIndex = ((int)(resources.GetObject("lblClose.ImageIndex")));
			this.lblClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblClose.ImeMode")));
			this.lblClose.Location = ((System.Drawing.Point)(resources.GetObject("lblClose.Location")));
			this.lblClose.Name = "lblClose";
			this.lblClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblClose.RightToLeft")));
			this.lblClose.Size = ((System.Drawing.Size)(resources.GetObject("lblClose.Size")));
			this.lblClose.TabIndex = ((int)(resources.GetObject("lblClose.TabIndex")));
			this.lblClose.Text = resources.GetString("lblClose.Text");
			this.lblClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblClose.TextAlign")));
			this.lblClose.Visible = ((bool)(resources.GetObject("lblClose.Visible")));
			// 
			// ManufacturingClose
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.CancelButton = this.btnClose;
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.lblClose);
			this.Controls.Add(this.cboCCN);
			this.Controls.Add(this.dtmToDueDate);
			this.Controls.Add(this.dtmFromDueDate);
			this.Controls.Add(this.dtmPostDate);
			this.Controls.Add(this.btnSearchMasLoc);
			this.Controls.Add(this.txtMasLoc);
			this.Controls.Add(this.gridWOClose);
			this.Controls.Add(this.lblMasLoc);
			this.Controls.Add(this.lblPostDate);
			this.Controls.Add(this.btnSearch);
			this.Controls.Add(this.btnCloseWO);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.lblCCN);
			this.Controls.Add(this.chkSelectAllManuf);
			this.Controls.Add(this.lblToDueDate);
			this.Controls.Add(this.lblFromDueDate);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.KeyPreview = true;
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "ManufacturingClose";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ManufacturingClose_KeyDown);
			this.Closing += new System.ComponentModel.CancelEventHandler(this.ManufacturingClose_Closing);
			this.Load += new System.EventHandler(this.ManufacturingClose_Load);
			((System.ComponentModel.ISupportInitialize)(this.dtmToDueDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromDueDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmPostDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.gridWOClose)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion
		
		/// <summary>
		/// ManufacturingClose_Load
		/// </summary>
		/// <author>Trada</author>
		/// <date>Thursday, June 9 2005</date>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void ManufacturingClose_Load(object sender, System.EventArgs e)
		{
			
			const string METHOD_NAME = THIS + ".ManufacturingClose_Load()";
			try
			{
				//Set authorization for user
				Security objSecurity = new Security();
				this.Name = THIS;
				if(objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
				{
					this.Close();
					// You don't have the right to view this item
					PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW);
					return;
				}
				//StoreGrid();
				dtbGridLayOut = FormControlComponents.StoreGridLayout(gridWOClose);
				InitVariable();
				//Fill Default Master Location 
				FormControlComponents.SetDefaultMasterLocation(txtMasLoc);
				voMasLoc.MasterLocationID = SystemProperty.MasterLocationID;
				//Set focus to dtmPostDate
				dtmPostDate.Focus();
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			
		}
		/// <summary>
		/// Init variables 
		/// </summary>
		/// <author>Trada</author>
		/// <date>Friday, June 10 2005</date>
		private void InitVariable()
		{
			
			const string METHOD_NAME = THIS + ".InitVariable()";
			try
			{
				
				// Load combo box
				UtilsBO boUtil = new UtilsBO();
				DataSet dstCCN = boUtil.ListCCN();
				cboCCN.DataSource = dstCCN.Tables[MST_CCNTable.TABLE_NAME];
				cboCCN.DisplayMember = MST_CCNTable.CODE_FLD;
				cboCCN.ValueMember = MST_CCNTable.CCNID_FLD;
				FormControlComponents.PutDataIntoC1ComboBox(cboCCN, dstCCN.Tables[MST_CCNTable.TABLE_NAME],MST_CCNTable.CODE_FLD,MST_CCNTable.CCNID_FLD,MST_CCNTable.TABLE_NAME);
				if (SystemProperty.CCNID != 0)
				{
					cboCCN.SelectedValue = SystemProperty.CCNID;
				}
				// Load combo box displays approving date
				PRO_WorkOrderDetailVO voWorkOrderDetail = new PRO_WorkOrderDetailVO();
				voWorkOrderDetail.MfgCloseDate = boUtil.GetDBDate();
				if((DateTime.MinValue < voWorkOrderDetail.MfgCloseDate) && (voWorkOrderDetail.MfgCloseDate < DateTime.MaxValue))
					dtmPostDate.Value = voWorkOrderDetail.MfgCloseDate;
				else
					dtmPostDate.Value = DBNull.Value;
				
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
				
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
				
			}
			
		}
		/// <summary>
		/// btnSearchMasLoc_Click
		/// </summary>
		/// <author>Trada</author>
		/// <date>Friday, June 10 2005</date>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btnSearchMasLoc_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSearchMasLoc_Click()";
			try 
			{
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				//User has selected CCN
				if (cboCCN.SelectedIndex != -1)
				{
					htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, cboCCN.SelectedValue);	
				}
				else //User has not selected CCN
				{
					htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, 0);
				}
				drwResult = FormControlComponents.OpenSearchForm(MST_MasterLocationTable.TABLE_NAME, MST_MasterLocationTable.CODE_FLD, txtMasLoc.Text, htbCriteria, true);
				if (drwResult != null)
				{
					if (voMasLoc.MasterLocationID != int.Parse(drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD].ToString()))
					{
						txtMasLoc.Text = drwResult[MST_MasterLocationTable.CODE_FLD].ToString();
						voMasLoc.MasterLocationID = int.Parse(drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD].ToString());
						CreateDataSet();
						gridWOClose.DataSource = dstGridData.Tables[0];
						FormControlComponents.RestoreGridLayout(gridWOClose, dtbGridLayOut);
					}
					txtMasLoc.Text = drwResult[MST_MasterLocationTable.CODE_FLD].ToString();
					voMasLoc.MasterLocationID = int.Parse(drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD].ToString());
				}
				else
				{
					txtMasLoc.Focus();
				}

			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}

		/// <summary>
		/// btnSearch_Click
		/// </summary>
		/// <author>Trada</author>
		/// <date>Thursday, June 9 2005</date>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		protected virtual void btnSearch_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSearch_Click()";
			try 
			{
				if (dtmPostDate.Value.ToString() == string.Empty)
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
					dtmPostDate.Focus();
					dtmPostDate.Select();
					return;
				}
				//Check date in period
				if (!FormControlComponents.CheckDateInCurrentPeriod(DateTime.Parse(dtmPostDate.Value.ToString())))
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_RGV_POSTDATE_PERIOD, MessageBoxIcon.Warning);
					dtmPostDate.Focus();
					dtmPostDate.Select();
					return;
				}
				DateTime pdtmFromDueDate = new DateTime();
				DateTime pdtmToDueDate = new DateTime();
				if (dtmFromDueDate.Value.ToString() != string.Empty)
				{
					pdtmFromDueDate = DateTime.Parse(dtmFromDueDate.Value.ToString());
				}
				if (dtmToDueDate.Value.ToString() != string.Empty)
				{
					pdtmToDueDate = DateTime.Parse(dtmToDueDate.Value.ToString());
				}
				if ((dtmFromDueDate.Value.ToString() != string.Empty) && (dtmToDueDate.Value.ToString() != string.Empty))
				{
					if (pdtmFromDueDate > pdtmToDueDate)
					{
						PCSMessageBox.Show(ErrorCode.MESSAGE_MANUFACTURING_CLOSE_FROMDATE_SMALLER_TODATE, MessageBoxIcon.Warning);
						dtmFromDueDate.Focus();
						return;
					}
				}
				if (txtMasLoc.Text.ToString() == string.Empty)
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
					txtMasLoc.Focus();
					return;
				}
					
					//Bind data to grid
					BindDataToGrid();
					
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}

		/// <summary>
		/// chkSelectAllManuf_CheckedChanged
		/// </summary>
		/// <author>Trada</author>
		/// <date>Friday, June 10 2005</date>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void chkSelectAllManuf_CheckedChanged(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".chkSelectAllManuf_CheckedChanged()";
			try
			{
				
				if ((blnStateOfCheck)&&(gridWOClose.Splits[0].Rows.Count != 0))
				{
					if (chkSelectAllManuf.Checked)
					{
						foreach (DataRow drow in dstReleaseWO.Tables[0].Rows)
						{
							if (drow.RowState != DataRowState.Deleted)
							{
								drow[SELECT] = true;
							}
						}
					}
					else
					{
						foreach (DataRow drow in dstReleaseWO.Tables[0].Rows)
						{
							if (drow.RowState != DataRowState.Deleted)
							{
								drow[SELECT] = false;
							}
						}
					}
				}

			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}

		}

		/// <summary>
		/// Close WOs has been selected
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, June 10 2005</date>
		protected virtual void btnCloseWO_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnCloseWO_Click()";
			try 
			{
				
				if (dtmPostDate.Value == null)
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Error);
					dtmPostDate.Focus();
					dtmPostDate.Select();
					return;
				}
				//Check date in period
				if (!FormControlComponents.CheckDateInCurrentPeriod(DateTime.Parse(dtmPostDate.Value.ToString())))
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_RGV_POSTDATE_PERIOD);
					dtmPostDate.Focus();
					dtmPostDate.Select();
					return;
				}
				if (dtmPostDate.Text == string.Empty)
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Error);
					dtmPostDate.Focus();
					return;
				}
				if (gridWOClose.Splits[0].Rows.Count == 0)
				{
					throw new PCSException(ErrorCode.MESSAGE_PO_APPROVE_NO_DATA_IN_GRID, METHOD_NAME, null);
				}
				if (CheckDataGridToRelease())
				{
					StoreSelectedLines();
                    ManufacturingCloseBO boManuf = new ManufacturingCloseBO();
                    boManuf.CloseWorkOrderLines(DateTime.Parse(dtmPostDate.Value.ToString()), arrSelectedLines);
					if (PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA) == DialogResult.OK)
					{
						BindDataToGrid();
					}
				}
				else 
					PCSMessageBox.Show(ErrorCode.MESSAGE_RELEASE_WO_SELECT_WOLINE, MessageBoxIcon.Error);

			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// CheckDataGridToRelease
		/// </summary>
		/// <author>Trada</author>
		/// <date>Thursday, June 16 2005</date>
		/// <returns>bool</returns>
		private bool CheckDataGridToRelease()
		{
			const string METHOD_NAME = THIS + ".CheckDataGridToRelease()";
			try 
			{
				int pintNumRow = 0;
				for (int i = 0; i < gridWOClose.Splits[0].Rows.Count; i++)
				{
					if (gridWOClose[i, SELECT].ToString().Trim() != TRUE)
					{
						pintNumRow++;
					}
				}
				//there is not any rows checked
				if (pintNumRow == gridWOClose.Splits[0].Rows.Count)
				{
					return false;					
				}
				else return true;

			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
				
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
				
			}
		}

		/// <summary>
		/// btnHelp_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btnHelp_Click(object sender, System.EventArgs e)
		{
		
		}

		/// <summary>
		/// btnClose_Click
		/// </summary>
		/// <author>Trada</author>
		/// <date
		/// Thursday, June 9, 2005
		/// </date>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btnClose_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
		//protected PCSComProduction.WorkOrder.BO.ManufacturingCloseBO boManufacturingClose;
		/// <summary>
		/// All selected work order line to be closed
		/// </summary>
		protected ArrayList arrSelectedLines;
		/// <summary>
		/// Bind data to grid
		/// </summary>
		/// <author>Trada</author>
		/// <date>Monday, June 13 2005</date>
		protected  virtual void BindDataToGrid()
		{
			const string METHOD_NAME = THIS + ".BindDataToGrid()";
			int pintCCN = int.Parse(cboCCN.SelectedValue.ToString());
			int pintMasLoc = voMasLoc.MasterLocationID;
			DateTime pdtmFromDueDate = new DateTime();
			DateTime pdtmToDueDate = new DateTime();
			try
			{
				if (dtmFromDueDate.Value.ToString() != string.Empty)
				{
					pdtmFromDueDate = DateTime.Parse(dtmFromDueDate.Value.ToString());
				}
				if (dtmToDueDate.Value.ToString() != string.Empty)
				{
					pdtmToDueDate = DateTime.Parse(dtmToDueDate.Value.ToString());
				}
				//List release WOs
				
				ManufacturingCloseBO boManufacturingClose = new ManufacturingCloseBO();
				dstReleaseWO = boManufacturingClose.SearchReleasedWO(pintCCN, pintMasLoc, pdtmFromDueDate, pdtmToDueDate);
//				if (dstReleaseWO.Tables[0].Rows.Count == 0)
//				{
//					//PCSMessageBox.Show(ErrorCode.MESSAGE_MANUFACTURING_CLOSE_NOT_FOUND_ANY_WO, MessageBoxIcon.Warning);
//					return;
//				}

				foreach (DataRow drow in dstReleaseWO.Tables[0].Rows)
				{
					drow[SELECT] = false;
				}
				gridWOClose.DataSource = dstReleaseWO.Tables[0];
				FormControlComponents.RestoreGridLayout(gridWOClose, dtbGridLayOut);
				gridWOClose.Splits[0].DisplayColumns[SELECT].DataColumn.ValueItems.Presentation  = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;
				gridWOClose.Splits[0].DisplayColumns[SELECT].Style.HorizontalAlignment = AlignHorzEnum.Center;
				
				//Lock all columns in grid
				gridWOClose.Splits[0].DisplayColumns[PRO_WorkOrderMasterTable.WORKORDERNO_FLD].Locked = true;
				gridWOClose.Splits[0].DisplayColumns[PRO_WorkOrderDetailTable.LINE_FLD].Locked = true;
				gridWOClose.Splits[0].DisplayColumns[OPENQUANTITY].Locked = true;
				gridWOClose.Splits[0].DisplayColumns[ITM_CategoryTable.TABLE_NAME + ITM_CategoryTable.CODE_FLD].Locked = true;
				gridWOClose.Columns[OPENQUANTITY].NumberFormat = Constants.EDIT_NUM_MASK;
				gridWOClose.Splits[0].DisplayColumns[PARTNUMBER].Locked = true;
				gridWOClose.Splits[0].DisplayColumns[CAPTION_UM].Locked = true;
				gridWOClose.Splits[0].DisplayColumns[PRO_WorkOrderDetailTable.STARTDATE_FLD].Locked = true;
				gridWOClose.Columns[PRO_WorkOrderDetailTable.STARTDATE_FLD].NumberFormat = Constants.DATETIME_FORMAT_HOUR;
				gridWOClose.Splits[0].DisplayColumns[PRO_WorkOrderDetailTable.DUEDATE_FLD].Locked = true;
				gridWOClose.Columns[PRO_WorkOrderDetailTable.DUEDATE_FLD].NumberFormat = Constants.DATETIME_FORMAT_HOUR;
				gridWOClose.Splits[0].DisplayColumns[ITM_ProductTable.DESCRIPTION_FLD].Locked = true;
				gridWOClose.Splits[0].DisplayColumns[ITM_ProductTable.REVISION_FLD].Locked = true;

				//Invisible some columns 
				gridWOClose.Splits[0].DisplayColumns[PRO_WorkOrderDetailTable.WORKORDERDETAILID_FLD].Visible = false;
				dstReleaseWO.AcceptChanges();	
				//Set new status for chkSelectAll
				if (gridWOClose.Splits[0].Rows.Count == 0)
				{
					chkSelectAllManuf.Checked = false;
				}
				else
				{
					for (int i =0; i <gridWOClose.Splits[0].Rows.Count; i++)
					{
						if (gridWOClose[i, SELECT].ToString().Trim() != TRUE)
						{
							chkSelectAllManuf.Checked = false;
							return;
						}
					}
					chkSelectAllManuf.Checked = true;
				}
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
				
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
				
			}
		}

		/// <summary>
		/// CreateDataSet
		/// </summary>
		/// <author>Trada</author>
		/// <Date>Thursday, October 13 2005</Date>
		private void CreateDataSet()
		{
			const string METHOD_NAME = THIS + ".CreateDataSet()";
			try
			{
				dstGridData = new DataSet();
				dstGridData.Tables.Add(MANCLOSE_TABLE);
				dstGridData.Tables[MANCLOSE_TABLE].Columns.Add(SELECT);
				dstGridData.Tables[MANCLOSE_TABLE].Columns.Add(PRO_WorkOrderMasterTable.WORKORDERNO_FLD);
				dstGridData.Tables[MANCLOSE_TABLE].Columns.Add(PRO_WorkOrderDetailTable.LINE_FLD);
				dstGridData.Tables[MANCLOSE_TABLE].Columns.Add(PARTNUMBER);
				dstGridData.Tables[MANCLOSE_TABLE].Columns.Add(ITM_ProductTable.DESCRIPTION_FLD);
				dstGridData.Tables[MANCLOSE_TABLE].Columns.Add(ITM_ProductTable.REVISION_FLD);
				dstGridData.Tables[MANCLOSE_TABLE].Columns.Add(OPENQUANTITY);
				dstGridData.Tables[MANCLOSE_TABLE].Columns.Add(CAPTION_UM);
				dstGridData.Tables[MANCLOSE_TABLE].Columns.Add(PRO_WorkOrderDetailTable.STARTDATE_FLD);
				dstGridData.Tables[MANCLOSE_TABLE].Columns.Add(PRO_WorkOrderDetailTable.DUEDATE_FLD);
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// foreach row in grid check:
		/// if (Select.Checked = true)
		/// {
		/// - get WorkOrderDetailID of current line
		/// - put WorkOrderDetailID into an ArrayList (arrSelectedLines)
		/// }
		/// </summary>
		/// <author>Trada</author>
		/// <date>Friday, June 10 2005</date>
		protected void StoreSelectedLines()
		{
			const string METHOD_NAME = THIS + ".StoreSelectedLines()";
			try
			{
				arrSelectedLines = new ArrayList();	
				for (int i =0; i < gridWOClose.Splits[0].Rows.Count; i++)
				{
					if (gridWOClose[i, SELECT].ToString().Trim() == TRUE)
					{
						int pintWOId;
						pintWOId = int.Parse(gridWOClose[i, PRO_WorkOrderDetailTable.WORKORDERDETAILID_FLD].ToString().Trim());
						arrSelectedLines.Add(pintWOId);
					}

				}
				
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
				
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
				
			}
		}
		/// <summary>
		/// txtMasLoc_Leave
		/// </summary>
		/// <author>Trada</author>
		/// <date>Friday, June 10 2005</date>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void txtMasLoc_Leave(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtMasLoc_Leave()";
			try
			{
				OnLeaveControl(sender, e);
				UtilsBO boUtil = new UtilsBO();
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				//User has selected CCN
				if (txtMasLoc.Text.Trim() == string.Empty)
				{
					return;
				}
				if (cboCCN.SelectedIndex != -1)
				{
					htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, cboCCN.SelectedValue);	
				}
				else //User has not selected CCN
				{
					htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, 0);
				}
				drwResult = FormControlComponents.OpenSearchForm(MST_MasterLocationTable.TABLE_NAME, MST_MasterLocationTable.CODE_FLD, txtMasLoc.Text, htbCriteria, false);
				if (drwResult != null)
				{
					if (voMasLoc.MasterLocationID != int.Parse(drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD].ToString()))
					{
						txtMasLoc.Text = drwResult[MST_MasterLocationTable.CODE_FLD].ToString();
						voMasLoc.MasterLocationID = int.Parse(drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD].ToString());
						CreateDataSet();
						gridWOClose.DataSource = dstGridData.Tables[0];
						FormControlComponents.RestoreGridLayout(gridWOClose, dtbGridLayOut);
					}
					txtMasLoc.Text = drwResult[MST_MasterLocationTable.CODE_FLD].ToString();
					voMasLoc.MasterLocationID = int.Parse(drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD].ToString());
				}
				else
				{
					txtMasLoc.Focus();
				}
				
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// txtMasLoc_KeyDown
		/// </summary>
		/// <author>Trada</author>
		/// <date>Friday, June 10 2005</date>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void txtMasLoc_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtMasLoc_KeyDown()";
			if (e.KeyCode == Keys.F4)
			{
				btnSearchMasLoc_Click(sender, e);	
			}
		}
		/// <summary>
		/// CheckOrNochkCheckAll
		/// </summary>
		/// <author>Trada</author>
		/// <date>Friday, June 10 2005</date>
		private void CheckOrNochkCheckAll()
		{
			for (int i =0; i <gridWOClose.Splits[0].Rows.Count; i++)
			{
				if (gridWOClose[i, SELECT].ToString().Trim() != TRUE)
				{
					chkSelectAllManuf.Checked = false;
					return;
				}
			}
			chkSelectAllManuf.Checked = true;
		}
		/// <summary>
		/// gridWOClose_AfterColEdit
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, June 10 2005</date>
		private void gridWOClose_AfterColEdit(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)
		{
			if (e.Column.DataColumn.DataField == SELECT)
			{
				CheckOrNochkCheckAll();
			}
		}
		/// <summary>
		/// ManufacturingClose_KeyDown
		/// </summary>
		/// <author>Trada</author>
		/// <date>Monday, June 13 2005</date>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void ManufacturingClose_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			#region HACK: DEL Trada 10-25-2005

//			const string METHOD_NAME = THIS + ".ManufacturingClose_KeyDown()";
//			if (e.KeyCode == Keys.Escape)
//			{
//				this.Close();
//			}

			#endregion END: DEL Trada 10-25-2005
		}

		/// <summary>
		/// chkSelectAllManuf_Enter
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Tuesday, June 13 2005</date>
		private void chkSelectAllManuf_Enter(object sender, System.EventArgs e)
		{
			blnStateOfCheck = true;
		}

		/// <summary>
		/// chkSelectAllManuf_Leave
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void chkSelectAllManuf_Leave(object sender, System.EventArgs e)
		{
			blnStateOfCheck = false;
		}
		//**************************************************************************              
		///    <Description>
		///       OnEnterControl
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       Dungla
		///    </Authors>
		///    <History>
		///       Tuesday, March 29, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void OnEnterControl(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".OnEnterControl()";
			try
			{
				FormControlComponents.OnEnterControl(sender, e);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		//**************************************************************************              
		///    <Description>
		///       OnLeaveControl
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       Dungla
		///    </Authors>
		///    <History>
		///       Tuesday, March 29, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void OnLeaveControl(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".OnLeaveControl()";
			try
			{
				FormControlComponents.OnLeaveControl(sender, e);
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// ManufacturingClose_Closing
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, October 13 2005</date>
		private void ManufacturingClose_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".ManufacturingClose_Closing()";
			try 
			{
				if ((dstReleaseWO != null) && (dstReleaseWO.GetChanges() != null))
				{
					DialogResult confirmDialog = PCSMessageBox.Show(ErrorCode.MESSAGE_QUESTION_RELEASE_BEFORE_CLOSE, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, lblClose.Text);
					switch (confirmDialog)
					{
						case DialogResult.Yes:
							//Save before exit
							if (CheckDataGridToRelease())
							{
								btnCloseWO_Click(sender, new EventArgs());
							}							
							break;
						case DialogResult.No:
							break;
						case DialogResult.Cancel:
							e.Cancel = true;
							break;
					}
					return;
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}

		private void lblToDueDate_Click(object sender, System.EventArgs e)
		{
		
		}
	}
}
